<%@page import="com.ksyzt.ksite2.shared.modle.VW_NEWSObj"%>
<%@page import="com.ksyzt.ksite2.shared.modle.VW_NEWSObjs"%>
<%@page import="com.ksyzt.ksite2.client.column.ColumnType"%>
<%@page import="com.ksyzt.ksite2.shared.modle.COLUMNObjs"%>
<%@page import="com.ksyzt.ksite2.shared.modle.COLUMNObj"%>
<%@page import="com.ksyzt.ksite2.shared.PageData"%>
<%@page import="com.ksyzt.ksite2.server.common.Application"%>
<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	Application app = new Application(request, response);
	PageData pd = app.getApplicationPageData();

	int nid = app.parameterAsInteger("id", -1);
	VW_NEWSObj n = app.getNews(nid);
	COLUMNObj c = null;
	if (n != null) {
		c = app.getColumn(n.getOID());
	} else {
		c = new COLUMNObj();
	}
%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
<base href="<%=basePath%>" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title><%=pd.getName()%>-<%=n.getTITLE()%></title>
<meta http-equiv="pragma" content="no-cache" />
<meta http-equiv="cache-control" content="no-cache" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="keywords" content="<%=pd.getKeyWords()%>" />
<meta http-equiv="description" content="<%=pd.getSummary()%>" />
<link rel="stylesheet" type="text/css" href="css/comm.css" />
<style type="text/css">
</style>
<script src="js/swfobject_modified.js" type="text/javascript"></script>
<script src="js/jquery.min.js" type="text/javascript"></script>
<script type="text/javascript" src="js/jquery.ksyzt.js"></script>


</head>

<body>
	<div class="wrap">
		<div class="wrap_center">
			<jsp:include page="../include/top.jsp" />

			<div class="w_970">

				<div class="pagenavi-large">
					<div class='navibar-left'></div>
					<div class='navibar-middle-large'>
						<%=app.column2navi(c)%>

						<form style="display: inline;" action="news/search.jsp"
							method="get">
							<table style="float:right;margin-top: 4px;">
								<tr>
									<td><select name="type" class='search_select'>
											<option value="0" selected="selected">内容</option>
											<option value="1">标题</option>
									</select></td>
									<td><input name="w" type="text" value="" /></td>
									<td><input type="submit" value="搜索" />
									</td>
								</tr>
							</table>
						</form>
					</div>
					<div class='navibar-right'></div>
				</div>
				<div class='pagecontent-large'>
					<div class='article' id="article">
						<%
							out.print(app.article2html(n));
						%>
						<script type="text/javascript">
							install_article_tools();
						</script>

					</div>
				</div>

			</div>
		</div>
	</div>
	<jsp:include page="../include/bottom.jsp" />
	<script id="bdshare_js" type="text/javascript" data="type=button&uid=664845" src="http://bdimg.share.baidu.com/static/js/bds_s_v2.js?cdnversion=381133"></script>
	
</body>
</html>
